
//去除左边空格
function delLeft(str){
    let reg = /^\s+/;
    return str.replace(reg,"");
}

//去除右边空格
function delRight(str){
    let reg = /\s+$/;
    return str.replace(reg,"");
}

module.exports = {
    delLeft,
    delRight,

}